package com.example.demo01;


import java.lang.reflect.Field;
import java.util.LinkedList;

/**
 * description: EqualsDemo01 <br>
 * date: 2020/9/14 11:22 <br>
 *
 * @author: ZhangYixin <br>
 * version: 1.0 <br>
 */
public class EqualsDemo01 {

    public void test01() throws NoSuchFieldException, IllegalAccessException {
        Class cache = Integer.class.getDeclaredClasses()[0];
        Field myCache = cache.getDeclaredField("cache");
        myCache.setAccessible(true);

        Integer[] newCache = (Integer[]) myCache.get(cache);
        newCache[132] = newCache[133];

        new LinkedList<>();

        int a = 2;
        int b = a+a;
        System.out.printf("%d + %d = %d",a,a,b);

        
    }

}
